﻿
using BCCommon;
using BCCommon.Enums;
using BCData.Sim.StaffNotification;
using BCDto.Sim.Admin.Admin;
using BCDto.Sim.StaffNotification;
using BCEntity.Sim.StaffNotification;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.Sim.StaffNotification
{
    /// <summary>
    /// 员工通知信息
    /// </summary>
    public interface IStaffNotificationService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="staffNotificationId">员工通知信息Id</param>
        bool Exists(long staffNotificationId);
        /// <summary>
        /// 添加员工通知信息
        /// </summary>
        /// <param name="requestDto">员工通知信息信息</param>
        StaffNotificationDto Add(StaffNotificationRequestDto requestDto);
        /// <summary>
        /// 更新员工通知信息
        /// </summary>
        /// <param name="staffNotificationId">员工通知信息Id</param>
        StaffNotificationDto Update(long staffNotificationId);
        /// <summary>
        /// 删除员工通知信息
        /// </summary>
        /// <param name="staffNotificationId">员工通知信息Id</param>
        bool Delete(long staffNotificationId);
        /// <summary>
        /// 获取员工通知信息
        /// </summary>
        /// <param name="staffNotificationId">员工通知信息Id</param>
        StaffNotificationDto Get(long staffNotificationId);
        /// <summary>
        /// 获取员工未读通知信息数量
        /// </summary>
        int GetNoneReadCount(AdminDto adminDto);
        /// <summary>
        /// 获取员工通知信息分页列表
        /// </summary>
        /// <param name="adminDto">员工信息</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="sortName">排序字段</param>
        /// <param name="ascending">升序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">员工通知信息每页数据条数</param>
        PageableList<StaffNotificationDto> Query(AdminDto adminDto,DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}
